<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h1>哈哈，{{name}}</h1>
    </div>

    <script>
        Vue.config.productionTip = false  // 阻止vue在启动时的生产提示

        // 创建一个Vue实例
        new Vue({
            el: '#root', 
            data: { 
                name: '111'
            }
        })
    </script>
</body>

</html>